Repository navigation
feat(cache): connect fixed GPU blocks to OrbitKV local DRAM - #4
Merged
Merged
Conversation
feichai0017
force-pushed
the
feat/orbitkv-local-dram
branch
from
November 15, 2026 11:15
9c31a6a to
b68b890
Compare
feichai0017
force-pushed
the
feat/cache-identity-budgets
branch
from
November 15, 2026 11:19
43afdd2 to
9655934
Compare
feichai0017
force-pushed
the
feat/orbitkv-local-dram
branch
2 times, most recently
from
November 15, 2026 11:21
993be3c to
55d6f87
Compare
feichai0017
force-pushed
the
feat/orbitkv-local-dram
branch
from
November 15, 2026 11:39
55d6f87 to
777d47f
Compare
feichai0017
force-pushed
the
feat/cache-identity-budgets
branch
from
November 15, 2026 11:43
9d482fe to
7fe76c8
Compare
feichai0017
force-pushed
the
feat/orbitkv-local-dram
branch
from
November 15, 2026 11:43
777d47f to
a463189
Compare
feichai0017
marked this pull request as ready for review
November 15, 2026 12:09
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
feichai0017
changed the base branch from
feat/cache-identity-budgets
to
main
November 15, 2026 12:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds the first OrbitKV provider: fixed CUDA KV blocks ↔ a same-host Manager's DRAM tier. It uses the existing native registration, Publish/Restore and lease receipts; the adapter performs no byte copies and adds no inference coordinator. OrbitKV and OrbiTE are unchanged.
Depends on #3 and is stacked on
feat/cache-identity-budgetsfor an isolated review. #1 and #2 have been reviewed and merged. Do not merge this before #3.The supported layout is deliberately narrow: one full-history group, one block per slab, one GPU shard, complete registered layers. Window/state tails, packed slots, CPU tensors and partial layouts are rejected before native submission. In particular, this does not claim full DeepSeek-V4.1 hybrid-cache integration. SSD/peer profiles remain separate.
The provider bounds operations, metadata and borrowed bytes; records producer readiness on the calling CUDA stream; passes the retained stream to Restore; and returns separate logical and retirement receipts. Only a native done receipt releases charges. Pending/unknown completion or failed unregister retains the client, registration, views, handle and charges and fences new work. No uncertain Save/Restore replay. Explicit close joins the storage worker before unregistering. Required native client methods are checked before registration.
API:
The source contract is OrbitKV
93c1c55d795c19cb677f6661763d158a37a059af, especiallypython/src/client.rs,python/src/local_restore.rsandcrates/orbitkv-channel/src/client.rs. The adapter is an optional import; importing OrbitInfer loads neither OrbitKV nor Torch.Handoff:
uv run --no-sync python scripts/check.pypassed: 311 Rust tests, 2,461 Python tests, 551 explicit device/platform skips; Clippy, formatting, installed CPU wheel (including optional adapter import without loading OrbitKV/Torch) and all model package builds passed.ty check, Ruff andgit diff --checkpass. All 18 adapter controls passed 50 repetitions (900 executions), with byte/guard, budget, identity, cancel, early-drop, receipt and cleanup-failure checks. The full 59-control combined repetition set also passed 50 rounds (2,950 executions). Final head a463189 has 5/5 CI checks passed: Linux and macOS complete checks plus 59 controls x 50 repetitions each, Clippy and lint/types, and Apple/MLX controls.uv run --no-sync python tests/hardware/orbitkv_dram.py --bootstrap-socket /run/orbitkv/orbitkv.sock --metrics-url http://127.0.0.1:9090/metrics --device cuda:0 --output /tmp/orbitinfer-orbitkv-dram.json.